<?php
class Category extends AppModel{
    var $useTable = "rs_category";
    public $name = "Category";
	var $primaryKey = "categoryId";
	var $foreignKey = "";

    public function getCategoryByAtt($conditionArray){
        $cat = $this->find('first', array(
            'conditions' => $conditionArray
        ));
        return $cat;
    }
}